<?php
namespace app\model;
use think\admin\Model;

use think\model\relation\HasMany;

/**
 * 打卡任务
 * @class ClassTask
 * @package app\model
 */
class ClassTask extends Model
{
    protected $table = "hjz_class_task";

 
    public function classes(){
        return $this->belongsTo(Classes::class,'parent_id');
    }

    public function teacher(){
        return $this->belongsTo(Company::class,'company_id');
    }
}